export default function getDate(){
    let date = new Date()
    let year = date.getFullYear()
    let reWriteMonth = Number(date.getMonth()) + 1
    let reWriteDay = Number(date.getDate())
    if (reWriteMonth < 10 && reWriteMonth >= 1) {
        reWriteMonth = '0' + reWriteMonth
    }
    if (reWriteDay < 10 && reWriteDay >= 1) {
        reWriteDay = '0' + reWriteDay
    }
    let splitJoin = year + String(reWriteMonth) + String(reWriteDay)
    console.log('getLocalTime',splitJoin)
    var time=localStorage.getItem('timeDay')
    if(time==null||time==""){
        localStorage.setItem('timeDay',splitJoin)
    }
    return splitJoin
    
}